while (1>0)
do
    echo ---- 开始检查 ----

    svc="main_business_mic"
    if ps -ef | grep $svc | egrep -v grep >/dev/null
    then
        echo "$svc 正常"
    else
        echo "$svc 异常"
        node index main_business_mic
    fi

    echo ---- 检查结束 ----
    sleep 10
done
echo done